package com.opal.system.mapper.mysql;

import com.opal.system.entity.table.OpalUser;
import com.opal.system.entity.table.OpalUserExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OpalUserMapper {
    int countByExample(OpalUserExample example);

    int deleteByExample(OpalUserExample example);

    int deleteByPrimaryKey(Long userId);

    int insert(OpalUser record);

    int insertSelective(OpalUser record);

    List<OpalUser> selectByExample(OpalUserExample example);

    OpalUser selectByPrimaryKey(Long userId);

    int updateByExampleSelective(@Param("record") OpalUser record, @Param("example") OpalUserExample example);

    int updateByExample(@Param("record") OpalUser record, @Param("example") OpalUserExample example);

    int updateByPrimaryKeySelective(OpalUser record);

    int updateByPrimaryKey(OpalUser record);
}